﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFdbfirst
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {

                using (pubsEntities context = new pubsEntities())
                {
                    for (int i= 0;i < 4; i++)
                    {
                        context.TestTables.Add(new TestTable()
                        {
                            fname = "bbb",
                            lname = "bbb",
                            minit = "aabcddd",
                            hire_date = DateTime.Now
                        });
                    }
                    context.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.ReadKey();
            }
        }
    }
}
